//
//  RHInvItemHeaderView.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/6/14.
//

#import "RHInvItemHeaderView.h"

@implementation RHInvItemHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI
{
    
    UIView *bgView = kView;
    bgView.backgroundColor = UIColor.whiteColor;
    [self addSubview:bgView];
    [bgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsMake(5, 15, 5, 15));

    }];
    
    _titleLab = [QMUILabel labelWithFont:kSYSTEMFONT(12) textColor:kCOLOR_HEX(@"#3F4443")];
    _titleLab.textAlignment = NSTextAlignmentLeft;
    [bgView addSubview:_titleLab];
    [_titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(10);
        make.right.mas_offset(-10);
        make.centerY.mas_offset(5);
        
    }];
}

@end
